<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			<button v-on:click="login">登录</button>
			<button v-on:click="register">注册</button>
		</div>
	</body>
</html>
<script src="vue.js"></script>
<script>
	let config={
		"el":"#app",
		"methods":{
			"login":function(){
				window.alert("login")
			},
			"register":function(){
				window.alert("register")
			}
		}
	}
	
	new Vue(config)
</script>